Skip to content

Comments

feat(web): memory management in web ui#127

Open
skulldogged wants to merge 2 commits intospacedriveapp:mainfrom
skulldogged:web-memory-management
Open

feat(web): memory management in web ui#127
skulldogged wants to merge 2 commits intospacedriveapp:mainfrom
skulldogged:web-memory-management

Conversation

@skulldogged
Copy link
Contributor

Summary

  • Add full memory management in the web UI: users can create, edit, and remove memories directly from the Memories view.
  • Extend the API to support memory CRUD operations on /api/agents/memories (POST/PUT/DELETE), including embedding sync for create/update/delete so search stays consistent.
  • Improve memory editing UX by replacing the importance field with a slider plus synced numeric input for precise control.

Details

  • Backend
    • Added handlers in src/api/memories.rs for create, update, and soft-delete (forget) flows.
    • Wired new routes in src/api/server.rs under /agents/memories.
    • On create/update, embeddings are generated/stored; on content update, old embedding is replaced; on forget, embedding is removed.
  • Frontend API client
    • Added request/response types and methods for memory create/update/delete in interface/src/api/client.ts.
  • Web UI
    • Updated interface/src/routes/AgentMemories.tsx with:
      • "Add memory" modal
      • Edit and remove actions in expanded memory rows
      • Importance control using slider + manual number input (0-1, step 0.01)
      • Query invalidation to refresh list/search after mutations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant